package com.apes.fn.scm.retailOrder.service.tc.employeeBusinessOutputValue;

import com.alibaba.fastjson.annotation.JSONField;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import com.apes.framework.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;


import javax.persistence.*;
import java.util.Date;

/**
 * 功能：员工营业产值
 *
 * @author LinWZ
 * @create 2020-9-9 10:36
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = EmployeeBusinessOutputValue.CONST_TABLE_NAME)
public class EmployeeBusinessOutputValue extends Model {
    public static final String CONST_TABLE_NAME = "tc_emp_bus_output_value";

    @Id
    @Column(name = "id", length = 16)
    @Comment("编码")
    @ApesGenerator(code = CONST_TABLE_NAME, name = "员工营业产值")
    private String id;  //编码

    @Comment("统计日期")
    @JSONField(format = DateUtil.SHOW_DATETIME_FORMAT)
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "tjrq")
    private Date tjrq;

    @Column(name = "COMPANY_ID")
    @Comment("公司编码")
    private String companyId;

    @Column(name = "COMPANY_NAME")
    @Comment("公司名称")
    private String companyName;

    @Comment("门店id")
    @Column(name = "dept_id")
    private  String deptId;

    @Comment("门店名称")
    @Column(name = "dept_name")
    private  String deptName;

    @Comment("员工id")
    @Column(name = "party_role_id")
    private  String partyRoleId;

    @Comment("员工名称")
    @Column(name = "party_role_name")
    private  String partyRoleName;

    @Comment("年卡销售")
    @Column(name = "nkxs")
    private  double NKXS ;

    @Comment("年卡销售提成")
    @Column(name = "nkxstc")
    private  double NKXSTC ;

    @Comment("DIY年卡销售")
    @Column(name = "DIYNKXS")
    private  double DIYNKXS ;

    @Comment("DIY年卡销售提成")
    @Column(name = "DIYNKXSTC")
    private  double DIYNKXSTC ;

    @Comment("洗车销售")
    @Column(name = "xcxs")
    private  double XCXS ;

    @Comment("普通洗车销售")
    @Column(name = "ptxcxs")
    private  double PTXCXS ;

    @Comment("洗车销售提成")
    @Column(name = "xcxstc")
    private  double XCXSTC ;

    @Comment("美容销售")
    @Column(name = "mrxs")
    private  double MRXS ;

    @Comment("美容销售提成")
    @Column(name = "mrxstc")
    private  double MRXSTC ;

    @Comment("保养销售")
    @Column(name = "byxs")
    private  double BYXS ;

    @Comment("保养销售提成")
    @Column(name = "byxstc")
    private  double BYXSTC ;

    @Comment("轮胎销售")
    @Column(name = "ltxs")
    private  double LTXS ;

    @Comment("轮胎销售提成")
    @Column(name = "ltxstc")
    private  double LTXSTC ;

    @Comment("维修销售")
    @Column(name = "wxxs")
    private  double WXXS ;

    @Comment("维修销售提成")
    @Column(name = "wxxstc")
    private  double WXXSTC ;

    @Comment("钣喷销售")
    @Column(name = "bpxs")
    private  double BPXS ;

    @Comment("钣喷销售提成")
    @Column(name = "bpxstc")
    private  double BPXSTC ;

    @Comment("改装销售")
    @Column(name = "gzxs")
    private  double GZXS ;

    @Comment("改装销售提成")
    @Column(name = "gzxstc")
    private  double GZXSTC ;

    @Comment("救援销售")
    @Column(name = "jyxs")
    private  double JYXS ;

    @Comment("救援销售提成")
    @Column(name = "jyxstc")
    private  double JYXSTC ;

    @Comment("精品销售")
    @Column(name = "jpxs")
    private  double JPXS ;

    @Comment("精品销售提成")
    @Column(name = "jpxstc")
    private  double JPXSTC ;

    @Comment("生活用品销售")
    @Column(name = "shypxs")
    private  double SHYPXS ;

    @Comment("生活用品销售提成")
    @Column(name = "shypxstc")
    private  double SHYPXSTC ;

    @Comment("技术检测销售")
    @Column(name = "jsjcxs")
    private  double JSJCXS ;

    @Comment("技术检测销售提成")
    @Column(name = "jsjcxstc")
    private  double JSJCXSTC ;

    @Comment("信息服务销售")
    @Column(name = "xxfwxs")
    private  double XXFWXS ;

    @Comment("信息服务销售提成")
    @Column(name = "xxfwxstc")
    private  double XXFWXSTC ;

    @Comment("定损金额")
    @Column(name = "dsje")
    private  double DSJE ;

    @Comment("接案介绍费")
    @Column(name = "jcjsf")
    private  double JCJSF ;

    @Comment("接案介绍费提成")
    @Column(name = "jcjsftc")
    private  double JCJSFTC ;

    @Comment("净保费")
    @Column(name = "NET_PREMIUM")
    private  double netPremium ;//车险

    @Comment("赋能佣金")
    @Column(name = "FN_COMMISSION")
    private  double fnCommission ;//车险

    @Comment("车险交易额")
    @Column(name = "CXJYE")
    private  double CXJYE ;//车险

    @Comment("净保费提成")
    @Column(name = "NET_PREMIUM_TC")
    private  double netPremiumTc ;//车险

    @Comment("二手车交易额")
    @Column(name = "used_car_final_Price")
    private  double usedCarFinalPrice ;

    @Comment("二手车佣金")
    @Column(name = "used_car_Price")
    private  double usedCarPrice ;

    @Comment("二手车销售提成")
    @Column(name = "used_car_Price_tc")
    private double usedCarFinalPriceTc ;

    @Comment("收储值")
    @Column(name = "scz")
    private double SCZ ;

    @Comment("收订金")
    @Column(name = "sdj")
    private double SDJ ;

    @Comment("接车台数(自营)")
    @Column(name = "jctszy")
    private double JCTSZY ;

    @Comment("接车台数(代工)")
    @Column(name = "jctsdg")
    private double JCTSDG ;

    @Comment("结算台数")
    @Column(name = "jsts")
    private double JSTS ;

    @Comment("单车产值")
    @Column(name = "dccz")
    private double DCCZ ;

    @Comment("年审销售")
    @Column(name = "nsxs")
    private double NSXS ;

    @Comment("年审销售提成")
    @Column(name = "nsxstc")
    private double NSXSTC ;
}
